Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

token-client: Check simulation results for error #7523

Closed
wants to merge 1 commit into from

Conversation

joncinque
Copy link
Contributor

Problem

If the simulation for compute unit limit fails in the token-cli, it may continue to try to broadcast a transaction since the error falls through. Although that transaction should fail too, at least we don't run the risk of broadcasting something known to be bad.

Summary of changes

Add an err() function on the simulation results, and abort if the simulation for compute units fails.

#### Problem

If the simulation for compute unit limit fails in the token-cli, it may
continue to try to broadcast a transaction since the error falls
through. Although that transaction should fail too, at least we don't
run the risk of broadcasting something known to be bad.

#### Summary of changes

Add an `err()` function on the simulation results, and abort if the
simulation for compute units fails.
@github-actions github-actions bot added the stale [bot only] Added to stale content; will be closed soon label Dec 10, 2024
@Ownerbusinessjjfm

This comment was marked as off-topic.

@github-actions github-actions bot removed the stale [bot only] Added to stale content; will be closed soon label Dec 12, 2024
@github-actions github-actions bot added the stale [bot only] Added to stale content; will be closed soon label Dec 27, 2024
@github-actions github-actions bot closed this Jan 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stale [bot only] Added to stale content; will be closed soon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants